<?php
// +----------------------------------------------------------------------
// | ThinkPHP
// +----------------------------------------------------------------------
// | Copyright (c) 2008 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$

function writeLog() {
		// 写入错误日志
        if(C('WEB_LOG_RECORD') || C('SQL_DEBUG_LOG')) {
			Log::save();
		}
}
Tag::add('app_end','writeLog');
?>